Introduction

How About Some Revalidation Spotify? Comparing the decent and recovery of John Frusciante through music.

John Frusciante is American musician best known as the guitarist of The Red Hot Chili Peppers (RHCP). Besides his work for the RHCP, he has had an accomplished and diverse solo career. In 1992 he left RHCP for the first time and released his debut solo album two years later, in November 1994. The album consists of two parts: Niandra LaDes and Usually Just A T-Shirt. Niandra LaDes was mostly recorded during the writing and recorded of RHCP album Blood Surgar Sex Magic, only “Running Away With You” was recorded after quitting the band. Usually Just A T-Shirt was recorded while the band was on tour in the months leading up to Frusciante’s departure and it appears in the order it was recorded. It was during these months that his use of cocaine and heroin became more extreme. Frusciante said himself in an interview that he can hear his decline into hard drugs in the songs: “It’s very sad because I hear, when I listen to it [the last two songs on the record], that it sounds like a person falling apart or it sounds like somebody about to kill themselves”. It wasn’t until January 1998 that Frusciante was admitted to rehab. He checked out and re-entered society about a month later. The same year Frusciante rejoined RHCP, released a new album with them and went on tour. During the tour he composed new material for his first solo record after rehabilitation, To Record Only Water For Ten Days (2001). What I would like to research in this corpus, is what Spotify’s API can tell us about the differences in his album before rehabilitation, Niandra Lades and Usually Just A T-Shirt (NLDAUJATS), and after rehabilitation, To Record Only Water For Ten Days (TROWFTD). I will compare the two albums mostly by comparing the Spotify API on: valence (musical positiveness), energy (a perceptual measure of intensity and activity), tempo, key, pitch and timbre.

speechiness (spoken word detection), loudness (the overall loudness of a track in decibels) and danceability (danceability describes how suitable a track is for dancing based on a combination of musical elements including tempo, rhythm stability, beat strength, and overall regularity) will also make an appearance in the following scatterplot

The Album Covers

Album clips

Comparing both albums

The Two Albums In A Scatterplot: where do we point to next


This scatter plot shows the energy vs valence of all songs from both albums. The size represents the speechiness (the detection of spoken words in a track) and the colour represents the loudness (overall loudness of a track in dB).

I think this graph does a great job of showing the overall difference between the two albums. For example, the smooth line shows that the lowest energy level of TROWFTD seamlessly picks up from where NLDAUJATS left it and continues to raise the bar.

Most of the songs on NLDAUJATS are also generally more clustered around the bottom left corner, meaning they are low on energy and valence, while most of the songs on TROWFTD are clustered around the top in the middle and on the right, showing that are way higher in energy levels and ‘positivity’.

Both the speech and loudness levels are also clearly higher on TROWFTD. The loudest song on NLDAUJATS (‘Big Takeover’) for example, is nearly four times quieter than the loudest song on TROWFTD (‘Fallout’).

Something I don’t understand however, is that the song ‘Skin Blues’ has the highest speech levels on NLDAUJATS. ‘Skin Blues’ has no vocals on it or any speech as far as I can hear, so what does Spotify analyze that sounds to it like spoken words?

Bar Chart of Vitality: can comparing valence and energy levels reveal some insights?


On the left we have two bar charts, one measuring the valence and one measuring the energy of the two albums. TROWFTD beats NLDAUJATS on both accounts, especially in energy.

What I find interesting, is that NLDAUJATS has 10 more songs than TROWFTD, but still loses the fight. This shows how much more energetic and positive Spotify (and I can’t help but agree) finds the latter.

Histogram of Tempo Differences: “were you rushing or were you dragging”?


Here’s where the differences between the albums diminish. The mean tempo of NLDAUJATS lies at around 112bpm and TROWFTD’s mean tempo is right next door at around 113bpm. The difference would be almost impossible to hear. There is, however, a noticeable difference in the variety in tempi used between the two albums. TROWFTD’s tempi is clustered between 80-120bpm, with three outliers between 155-170bpm. NLDAUJATS’s tempi ranges from 70 to 155bpm with one outlier at 175bpm.

In terms of tempo, TROWFTD is contained with a couple of exceptions. NLDAUJATS, on the other hand, is more sporadic and let loose, possibly reflecting the let loose period Frusciante was in while recording the album.

Bar Charts of the Keys: are you feeling major or minor?

Key Track Album
A major Untitled #7 Niandra LaDes And Usually Just A T-Shirt
A major Moments Have You To Record Only Water For Ten Days (U.S. Version)
A minor My Smile Is A Rifle Niandra LaDes And Usually Just A T-Shirt
A minor Untitled #5 Niandra LaDes And Usually Just A T-Shirt
A minor Untitled #11 Niandra LaDes And Usually Just A T-Shirt
A minor Untitled #12 Niandra LaDes And Usually Just A T-Shirt
A minor Invisible Movement To Record Only Water For Ten Days (U.S. Version)
A minor In Rime To Record Only Water For Ten Days (U.S. Version)
A minor Saturation To Record Only Water For Ten Days (U.S. Version)
A# minor Ramparts To Record Only Water For Ten Days (U.S. Version)
B major Untitled #1 Niandra LaDes And Usually Just A T-Shirt
B major Untitled #6 Niandra LaDes And Usually Just A T-Shirt
B minor As Can Be Niandra LaDes And Usually Just A T-Shirt
B minor Running Away Into You Niandra LaDes And Usually Just A T-Shirt
B minor Away & Anywhere To Record Only Water For Ten Days (U.S. Version)
B minor Remain To Record Only Water For Ten Days (U.S. Version)
B minor Representing To Record Only Water For Ten Days (U.S. Version)
C major Untitled #3 Niandra LaDes And Usually Just A T-Shirt
D minor Head (Beach Arab) Niandra LaDes And Usually Just A T-Shirt
D minor Been Insane Niandra LaDes And Usually Just A T-Shirt
D minor Your Pussy’s Glued To A Building On Fire Niandra LaDes And Usually Just A T-Shirt
D minor Wind up Space To Record Only Water For Ten Days (U.S. Version)
D minor Fallout To Record Only Water For Ten Days (U.S. Version)
D# major The First Season To Record Only Water For Ten Days (U.S. Version)
D# minor Untitled #8 Niandra LaDes And Usually Just A T-Shirt
D# minor Untitled #10 Niandra LaDes And Usually Just A T-Shirt
E minor Skin Blues Niandra LaDes And Usually Just A T-Shirt
E minor Blood On My Neck From Success Niandra LaDes And Usually Just A T-Shirt
F major Curtains Niandra LaDes And Usually Just A T-Shirt
F major Untitled #2 Niandra LaDes And Usually Just A T-Shirt
F major Someone’s To Record Only Water For Ten Days (U.S. Version)
F# major Ten To Butter Blood Voodoo Niandra LaDes And Usually Just A T-Shirt
F# minor With No One To Record Only Water For Ten Days (U.S. Version)
F# minor Murderers To Record Only Water For Ten Days (U.S. Version)
G major Untitled #4 Niandra LaDes And Usually Just A T-Shirt
G minor Going Inside To Record Only Water For Ten Days (U.S. Version)
G# minor Big Takeover Niandra LaDes And Usually Just A T-Shirt
G# minor Mascara Niandra LaDes And Usually Just A T-Shirt
G# minor Untitled #9 Niandra LaDes And Usually Just A T-Shirt
G# minor Untitled #13 Niandra LaDes And Usually Just A T-Shirt

Here we have a histogram comparing the keys used in the two albums. It seems Frusciante had a preference for writing songs in A, B, D(major) and G#. B and G# are both close to A, by a whole note and a half note respectively. This could suggest that his vocal range fits best when singing in these keys, or maybe he just has a preference for the sound of them.

However, there are no songs in G# in TROWFTD. This could be because of (sometimes what seems unintentional) instances of chromatic music in NLDAUJATS, resulting in some songs that might intentionally be in A, being read as G# by Spotify.

Frusciante also has a preference for minor with 29 songs in minor key and 11 in major key. NLDAUJATS has 17 songs in minor and 8 in major, and TROWFTD has 12 songs in minor and 3 songs in major.

Time for Diagnosis: how well will Dr. Random-Forest perform?

Forest all features predictions

Songs Prediction Truth Confidence
Big Takeover TROWFTD NLDAUJATS 72.9%
Ramparts NLDAUJATS TROWFTD 68.2%

Forest valence and energy predictions

Songs Prediction Truth Confidence
Big Takeover TROWFTD NLDAUJATS 89.7%
Untitled 10# TROWFTD NLDAUJATS 75.1%
As Can Be TROWFTD NLDAUJATS 54.1%
Ramparts NLDAUJATS TROWFTD 99.6%
Saturation NLDAUJATS TROWFTD 50.9%
The First Season NLDAUJATS TROWFTD 31.2%


The heat maps we see here are classifiers using a random forest method to predict which song belongs to the album it’s from. I decided on using the random forest method due to the more accurate performance in comparison with a K-nearest neighbour or decision tree method. In the tables under the heatmaps you can see the songs the classifier wrongly predicted. Under these tables you’ll find two column charts with the importance of the features being used to classify.

In the first heat map the classifier took on all the track-level and timbre features, as well as the musical notes. The most important features are by far: c01 (timbre loudness), loudness and energy. The classifier performed very well, only getting one song wrong for each album. And it wasn’t even too certain of it’s mistakes, being around 70% confident for both predictions. The two songs wrongly predicted make somewhat sense too. “Big Takeover” is one of the more rhythmically and harmonically structured songs in NLDAUJATS. Funnily enough, it’s a cover and so the only song not written by Frusciante on the album. “Ramparts” on the other hand, is the only instrumental song without a drum machine on TROWFTD. The lack of vocals and a constant rhythm provides the random forest with enough reason to classify “Ramparts” as a song in the unstructured NLDAUJATS.

Because the difference between the albums is already very clear from the get-go, I decided to make it harder for the classifier by removing all features except for ‘valence’ and ‘energy’; the two track-level features I have mainly been using.

The classifier performed slightly worse, predicting three songs on each album wrong. “Big Takeover” and “Ramparts” make another appearance, and with even more confidence than before with a whopping 89.7% and 99.6% respectively. “Untitled #10” and “As Can Be” are quite surprising predictions if you were to listen to the songs. If you take a look back at the scatterplot, you can see that “As Can Be” has an energy level which is passable for TROWFTD and “Untitled #10” gets in through relatively high valence levels. “Saturation” and “The First Season” are both the only songs on TROWFTD other than “Ramparts” that have no drum machine, which get them in NLDAUJATS due to low energy and valence levels.

Comparing songs

The Chosen (S)on(g)e’s: zooming in on two songs, from both albums, with relatively average valence and energy levels

I have chosen the songs “Running Away Into You” from NLDAUJATS and “Going Inside” from TROWFTD because I think they are good representations for the positiveness (valence) and energy of their given album and time period. Zooming in on these tracks will hopefully give new insights on the differences between the two radically different periods in which the songs were recorded.

  • “Running Away Into You” has a mean valence and energy of 0,2120 and 0,25400 respectively. NLDAUJATS’s mean valence is 0.2414 and mean energy is 0.30840

  • “Going Inside” has a mean valence and energy of 0.5840 and 0.81600 respectively. TROWFTD’s mean valence is 0.4666 and mean energy is 0.7543

Song clips

Round One, Chromograms: time for your pitch!


First of all a track-level analysis with chromagrams. The chromagrams already show us some relevant differences between the tracks.

“Running Away With You” seems to have more distinction between notes than “Going Inside”, but there are more clustered segments of two or three notes that are only a half step each away from each other: C#/Db and D, A, A#/Bb and B (around the 75s mark), and F#/Gb and G from 100s onward. “Going Inside” has less spaces with low magnitude, but there’s more distinction in the notes of Gm, the key the song is in.

“Going Inside” clearly has more consonance than “Running Away Into You”, which results in it sounding more pleasant and acceptable to the ear. The harshness and dissonance of “Running Away Into You” could be seen as a reflection of someone in an unstable period, e.g. a desent into hard drugs. “Going Inside” sounds much more structured and stable. The main reason for this is the drum machine being used in TROWFTD, but the harmonies and tones are also a lot more clear and bright than in NLDAUJATS.

These chromagrams visualize the lack of structure Frusciante’s music had in his descent and the rediscovered structure in his music made after revalidation.

Round Two, Tempogram: can you keep up the speed?


Here’s where things get very clear. The tempogram of “Running Away Into You” is all over the place. There’s no clear bpm to find and in the last few seconds Spotify reads multiple tempo’s at the same time, all what seems to be equally distanced apart. This is due to the delay feedback at the end of the track, being sped and slowed down. The tempo of “Going Inside” is self-measured by the tempogram at around the 200/400 bpm mark. The tempo Spotify measures is 104.1 bpm. The reason for this difference is the tempogram basing the bpm on energy, and therefor doubling and quadrupling the original bpm by including the 8th and 16th notes in it’s measurement. Spotify bases the tempo on the average beat duration, smartly choosing the quarter notes of the 4/4 time signature the song is in.

This however, is not a fair comparison. As steated earlier, “Going Inside” has a drum machine making the job a lot easier for the tempogram. This is why I have included a third tempogram for the song “Saturation” on TROWFTD, one of only two songs that doesn’t make use of a drum machine. I chose this song not only for the lack of a constant tempo, but also for the similar playing style of alternating between strumming and picking chords.

As you can see, TROWFTD remains triumphant in maintaining a (somewhat) stable tempo. The tempogram once again doubles and very occasionally quadruples the original bpm of 92.3, but coincidentally like “Running Away Into You” does something strange at the last part of the song. This time it resembles a DNA helix, caused by the overpowering synthesizer being played.

Round Three, Self-Similarity Matrix: take a look in the mirror


Here we have self-simalarity matrices (SSMs) that are based on chroma/pitch and timbre (tone colour or tone quality), the x and y axis are both the duration of the songs in seconds. Both the pitch and timbre SSMs are using cosine (root mean square as summary statistic) as the distance measure, except for ‘Timbre.2’ from “Going Inside”. Here I added a timbre SSM using Eucildean (mean as summary statistic) instead of cosine, because it’s (ever so) slightly clearer to see the similarities/differences.

  • SSMs show visualize similarities between different parts of a song. The darker squares represent similarities and the lighter it gets, the bigger the difference.

The pitch SSM of “Running Away Into You” shows the repeating chord progression of the verse which happens four times between 0 and 60s mark. This seems to be the only clear pattern in pitch and shows the structureless form this song has. The timbre SSM doesn’t seem to help finding much structure either. There are similarities to be seen but no real pattern to hang on to.

In “Going Inside” there’s more structure in the pitch SSM to be found. The darker, more similar patterns between 0s - ±40s, ±90s - ±110s and ±180s - ±220s represent the instrumental break that the song starts with. The bigger, brighter squares with repeating diagonal lines represent the verse and bridge, which both have fairly similar which makes it hard to tell apart in this SSM. The timbre SSMs however, do a better job on visualizing the difference in the verse and bridge (±150s - ±180s). The timbre SSMs sadly don’t tell us much more, except for the lack of timbre change. Timbre can be a difficult term to understand, but if you listen to the song it becomes more clear: there is not much dynamic changes in volume or energy, the ‘tone colour’ doesn’t seem to change.

Conclusions

Conclusion and Contribution: a promotion for our doctor?

In this journey through comparisons between two radically different periods in both music and life, Spotify’s API did a good job in providing data to visualize the contrasts and similarities between NLDAUJATS and TROWFTD.

The average tempo and keys used by Frusciante didn’t seem to change much over time, but the rhythmic and harmonic structure, valence, energy, speechiness and loudness (and probably more if it would be measured) certainly did.

I think the sharpness and precision of Spotify’s API on measuring lo-fi, abscract and unstructured music (in this case music being made by someone decending into hard drugs) can benefit more research on this kind of topic, or perhaps some instances of music therapy use in drug rehabilitation centers.

I hope you’ve enjoyed this dive into John Frusciante’s early work and have gotten some insights into the two very different but, I find, equally beautiful albums.

John Frusciante in 1992 and 2001